
module.exports = {
    option: {
        tooltip: {
            trigger: 'axis',
            axisPointer: { type: 'shadow' }
        },
        legend: {
            data: ['实际工时', '逾期工时', '逾期天数']
        },
        xAxis: {
            type: 'category',
            data: [],
            axisLabel: { rotate: 45 }
        },
        yAxis: [
            {
                type: 'value',
                name: '工时（小时）',
                axisLabel: { formatter: '{value} h' }
            },
            {
                type: 'value',
                name: '天数',
                axisLabel: { formatter: '{value} 天' }
            }
        ],
        dataZoom: [
            {
                show: true,
                realtime: true,
                start: 0,
                end: 70
            }
        ],
        series: [
            {
                name: '实际工时',
                type: 'bar',
                data: [],
                itemStyle: {
                    color: '#5470C6'
                },
                barWidth: '10%'
            },
            {
                name: '逾期工时',
                type: 'bar',
                data: [],
                itemStyle: {
                    color: '#EE6666'
                },
                barWidth: '10%'
            },
            {
                name: '逾期天数',
                type: 'line',
                yAxisIndex: 1,
                data: [],
                symbol: 'circle',
                symbolSize: 8,
                itemStyle: { color: '#FAC858' },
                lineStyle: { width: 1 }
            }
        ]
    }
};
